.fx-card {
  box-shadow: $border-shadow;
  border-radius: $border-radius-default;
  margin-bottom: 20px;
  background-color: $card-background;
  overflow: hidden;

  &.is-padding {
    > .title {
      padding: 10px 20px;
    }

    > .content {
      padding: 20px;
    }
  }

  &:hover {
    > .hide-wrapper > .hide-bar > .center {
      left: calc(50% - 45px);

      > span {
        opacity: 1;
      }
    }
  }

  > .title {
    height: 20px;
    line-height: 20px;
    border-bottom: 1px solid #ebeef5;
    color: $font-color-important;
  }

  > .hide-wrapper {
    width: 100%;
    transition: all 0.2s;
    position: relative;
    padding-bottom: 30px;

    > .hide-bar {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      cursor: pointer;
      user-select: none;
      text-align: center;
      height: 30px;
      line-height: 30px;
      border-top: 1px solid $border-color-default;
      transition: all 0.1s;
      background-color: $card-background;
      color: $font-color-lowest;

      &:hover {
        color: $color-primary;

        .fx-select-dropdown {
          &::before, &::after {
            background-color: $color-primary !important;
          }
        }
      }

      > .center {
        display: flex;
        position: absolute;
        left: calc(50% - 12px);
        transition: all 0.1s;

        .fx-select-dropdown {
          &::before, &::after {
            height: 2px;
            transition: all 0.1s;
            background-color: $font-color-lowest;
          }
        }

        > span {
          opacity: 0;
          transition: all 0.1s;
        }
      }
    }

    > .hide-content {
      border-top: 1px solid $border-color-default;

      > .hide-inner {
        padding: 20px;
      }
    }
  }
}
